<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Kowcore
 * @copyright  Copyright KEENONWEB LLC
 * @license    http://www.keenonweb.com/
 * @version    $Id: TagCloud.php 2011-03-09 08:45:41Z idris $
 * @author     Idris
 */

/**
 * @category   Application_Extensions
 * @package    Kowcore
 * @copyright  Copyright KEENONWEB LLC
 * @license    http://www.keenonweb.com/
 */

class Kowcore_View_Helper_KowShare extends Zend_View_Helper_Abstract {
	
	protected $_name;
	
	public function kowShare($profile = '', $type = '') {
		if (! $profile) {
			$profile = Engine_Api::_ ()->getApi ( 'settings', 'core' )->getSetting ( 'kowcore.addthis.profile', '' );
		}
		
		if (! $type) {
			$type = Engine_Api::_ ()->getApi ( 'settings', 'core' )->getSetting ( 'kowcore.addthis.type', '' );
		}
		
		return $this->view->partial ( 'helper/kow-share.tpl', 'kowcore', array ('profile' => $profile, 'type' => $type ) );
	}

}